/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import javax.swing.ImageIcon;

/**
 *
 * @author Tjarco
 */
public class gui_filmpje extends javax.swing.JFrame {

    //Maak de booleans om te kunnen kijken of een knop ingedrukt is.
    private boolean buttonBackPressed = false;
    private boolean buttonScene1Pressed = false;
    private boolean buttonScene2Pressed = false;
    private boolean buttonScene3Pressed = false;
    private boolean buttonScene4Pressed = false;

// <editor-fold defaultstate="collapsed" desc=" Getters en setters voor button check atributen ">
    public boolean isButtonBackPressed() {
        return buttonBackPressed;
    }

    public void setButtonBackPressed(boolean buttonBackPressed) {
        this.buttonBackPressed = buttonBackPressed;
    }

    public boolean isButtonScene1Pressed() {
        return buttonScene1Pressed;
    }

    public void setButtonScene1Pressed(boolean buttonScene1Pressed) {
        this.buttonScene1Pressed = buttonScene1Pressed;
    }

    public boolean isButtonScene2Pressed() {
        return buttonScene2Pressed;
    }

    public void setButtonScene2Pressed(boolean buttonScene2Pressed) {
        this.buttonScene2Pressed = buttonScene2Pressed;
    }

    public boolean isButtonScene3Pressed() {
        return buttonScene3Pressed;
    }

    public void setButtonScene3Pressed(boolean buttonScene3Pressed) {
        this.buttonScene3Pressed = buttonScene3Pressed;
    }

    public boolean isButtonScene4Pressed() {
        return buttonScene4Pressed;
    }

    public void setButtonScene4Pressed(boolean buttonScene4Pressed) {
        this.buttonScene4Pressed = buttonScene4Pressed;
    }
// </editor-fold>

    /**
     * Creates new form gui_filmpje
     */
    public gui_filmpje() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // Button events, voor het veranderen van de afbeelding en het klikken op knoppen.
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel5 = new javax.swing.JLabel();
        jButton_back = new javax.swing.JButton();
        buttonScene1 = new javax.swing.JButton();
        buttonScene3 = new javax.swing.JButton();
        buttonScene4 = new javax.swing.JButton();
        buttonScene2 = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setAlwaysOnTop(true);
        setFocusable(false);
        setMinimumSize(new java.awt.Dimension(1280, 720));
        setResizable(false);
        setUndecorated(true);
        getContentPane().setLayout(null);

        jLabel5.setFont(new java.awt.Font("Calibri", 0, 50)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(0, 51, 204));
        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("You can immediately select a certain scene");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(0, 0, 1280, 120);

        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Back_Button.png"))); // NOI18N
        jButton_back.setBorderPainted(false);
        jButton_back.setContentAreaFilled(false);
        jButton_back.setFocusPainted(false);
        jButton_back.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton_backMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jButton_backMouseExited(evt);
            }
        });
        jButton_back.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_backActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_back);
        jButton_back.setBounds(260, 560, 180, 150);

        buttonScene1.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonScene1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene1.png"))); // NOI18N
        buttonScene1.setBorderPainted(false);
        buttonScene1.setContentAreaFilled(false);
        buttonScene1.setFocusPainted(false);
        buttonScene1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonScene1MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonScene1MouseExited(evt);
            }
        });
        buttonScene1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonScene1ActionPerformed(evt);
            }
        });
        getContentPane().add(buttonScene1);
        buttonScene1.setBounds(30, 200, 300, 300);

        buttonScene3.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonScene3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene3.png"))); // NOI18N
        buttonScene3.setBorderPainted(false);
        buttonScene3.setContentAreaFilled(false);
        buttonScene3.setFocusPainted(false);
        buttonScene3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonScene3MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonScene3MouseExited(evt);
            }
        });
        buttonScene3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonScene3ActionPerformed(evt);
            }
        });
        getContentPane().add(buttonScene3);
        buttonScene3.setBounds(650, 200, 300, 300);

        buttonScene4.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonScene4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene4.png"))); // NOI18N
        buttonScene4.setBorderPainted(false);
        buttonScene4.setContentAreaFilled(false);
        buttonScene4.setFocusPainted(false);
        buttonScene4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonScene4MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonScene4MouseExited(evt);
            }
        });
        buttonScene4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonScene4ActionPerformed(evt);
            }
        });
        getContentPane().add(buttonScene4);
        buttonScene4.setBounds(960, 200, 300, 300);

        buttonScene2.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonScene2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene2.png"))); // NOI18N
        buttonScene2.setBorderPainted(false);
        buttonScene2.setContentAreaFilled(false);
        buttonScene2.setFocusPainted(false);
        buttonScene2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonScene2MouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonScene2MouseExited(evt);
            }
        });
        buttonScene2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonScene2ActionPerformed(evt);
            }
        });
        getContentPane().add(buttonScene2);
        buttonScene2.setBounds(340, 200, 300, 300);

        jLabel6.setFont(new java.awt.Font("Calibri", 0, 30)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(51, 51, 255));
        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText("Look at the other screen for the film");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(0, 100, 1280, 70);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/background.jpg"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(0, -10, 1280, 730);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonScene1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonScene1ActionPerformed
        buttonScene1Pressed = true;
    }//GEN-LAST:event_buttonScene1ActionPerformed

    private void jButton_backMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_backMouseEntered
        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Back_Button_Glow.png")));;

    }//GEN-LAST:event_jButton_backMouseEntered

    private void jButton_backMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_backMouseExited
        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Back_Button.png")));;
    }//GEN-LAST:event_jButton_backMouseExited

    private void buttonScene1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene1MouseEntered
        buttonScene1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene1Glow.png")));;
    }//GEN-LAST:event_buttonScene1MouseEntered

    private void buttonScene1MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene1MouseExited
        buttonScene1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene1.png")));
    }//GEN-LAST:event_buttonScene1MouseExited

    private void buttonScene3MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene3MouseEntered
        buttonScene3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene3Glow.png")));;
    }//GEN-LAST:event_buttonScene3MouseEntered

    private void buttonScene3MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene3MouseExited
        buttonScene3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene3.png")));;
    }//GEN-LAST:event_buttonScene3MouseExited

    private void buttonScene3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonScene3ActionPerformed
        buttonScene3Pressed = true;
    }//GEN-LAST:event_buttonScene3ActionPerformed

    private void buttonScene4MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene4MouseEntered
        buttonScene4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene4Glow.png")));;
    }//GEN-LAST:event_buttonScene4MouseEntered

    private void buttonScene4MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene4MouseExited
        buttonScene4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene4.png")));;
    }//GEN-LAST:event_buttonScene4MouseExited

    private void buttonScene4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonScene4ActionPerformed
        buttonScene4Pressed = true;
    }//GEN-LAST:event_buttonScene4ActionPerformed

    private void buttonScene2MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene2MouseEntered
        buttonScene2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene2Glow.png")));
    }//GEN-LAST:event_buttonScene2MouseEntered

    private void buttonScene2MouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonScene2MouseExited
        buttonScene2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonScene2.png")));
    }//GEN-LAST:event_buttonScene2MouseExited

    private void buttonScene2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonScene2ActionPerformed
        buttonScene2Pressed = true;
    }//GEN-LAST:event_buttonScene2ActionPerformed

    private void jButton_backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_backActionPerformed
        buttonBackPressed = true;
    }//GEN-LAST:event_jButton_backActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(gui_filmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(gui_filmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(gui_filmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(gui_filmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new gui_filmpje().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonScene1;
    private javax.swing.JButton buttonScene2;
    private javax.swing.JButton buttonScene3;
    private javax.swing.JButton buttonScene4;
    private javax.swing.JButton jButton_back;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    // End of variables declaration//GEN-END:variables
}
